import request from "@/router/axios";
//列表
export const getList = (current, size, params) => {
  return request({
    url: "/api/hg-quality/reviewctopic/list",
    method: "get",
    params: {
      current,
      size,
      ...params
    }
  });
};
//保存
export const save = data => {
  return request({
    url: "/api/hg-quality/reviewctopic/save",
    method: "post",
    data
  });
};
//详情
export const getDetail = id => {
  return request({
    url: "/api/hg-quality/reviewctopic/detail",
    method: "get",
    params: { id }
  });
};
// 删除
export const remove = ids => {
  return request({
    url: "/api/hg-quality/reviewctopic/remove",
    method: "post",
    params: { ids }
  });
};
// 所有月度计划信息
export const monthlyPlanList = (planNo,year,type) => {
  return request({
    url: "/api/hg-quality/reviewctopic/monthlyPlanList",
    method: "get",
    params: {
      planNo,
      year,
      type
    }
  });
};
// 流程
export const startProcess = id => {
  return request({
    url: "/api/hg-quality/reviewctopic/start-process",
    method: "get",
    params: {
      id
    }
  });
};
// 获取人员名称
export const getNameById = ids => {
  return request({
    url: "/api/hg-quality/reviewctopic/getNameById",
    method: "get",
    params: {
      ids
    }
  });
};
